package sys_enum

// 系统-业务系统
type sysBusinessSystem int

var SysBusinessSystem sysBusinessSystem

// 营运车系统
func (c *sysBusinessSystem) OperVehicle() int {
	return 1
}

// 重点车系统
func (c *sysBusinessSystem) MajorVehicle() int {
	return 2
}

// 工程车系统
func (c *sysBusinessSystem) EnginVehicle() int {
	return 3
}

// 管理员后台
func (c *sysBusinessSystem) AdminManage() int {
	return 4
}

func (c *sysBusinessSystem) ToText(value int) string {
	switch value {

	case 1:
		return "OperVehicle"

	case 2:
		return "MajorVehicle"

	case 3:
		return "EnginVehicle"

	case 4:
		return "AdminManage"

	}
	return ""
}

func (c *sysBusinessSystem) ToValue(text string) int {
	switch text {

	case "OperVehicle":
		return 1

	case "MajorVehicle":
		return 2

	case "EnginVehicle":
		return 3

	case "AdminManage":
		return 4

	}
	return 0
}
